package com.duobaoyu.dby.supply.biz.client.resource.bean.dto;


import com.duobaoyu.dby.common.core.validator.groups.Add;
import com.duobaoyu.dby.common.core.validator.groups.Edit;
import com.duobaoyu.dby.common.mybatis.support.Query;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Author tianxiaoqiang
 * @Date 2022/6/28 15:07
 * @Version 1.0
 * @Description
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "StateMappingDTO对象", description = "状态映射表入参对象")
public class StateMappingDTO extends Query implements Serializable {

	private static final long serialVersionUID = -2620797860880634446L;

	@NotNull(message = "状态映射ID不能为空", groups = {Edit.class})
	private Long id;
	/**
	 * 状态定义表ID
	 */
	@NotNull(message = "状态定义表ID不能为空", groups = {Add.class,Edit.class})
	private Long stateInfoId;
	/**
	 * 状态编号
	 */
	@NotBlank(message = "状态编号不能为空", groups = {Add.class,Edit.class})
	private String stateCode;
	/**
	 * 状态映射编号
	 */
	@NotBlank(message = "状态映射编号不能为空", groups = {Add.class,Edit.class})
	private String stateMappingCode;
	/**
	 * 状态映射名称
	 */
	@NotBlank(message = "状态映射名称不能为空", groups = {Add.class,Edit.class})
	private String stateMappingName;
	/**
	 * 状态映射对应的值
	 */
	@NotBlank(message = "状态映射对应的值不能为空", groups = {Add.class,Edit.class})
	private String stateMappingValue;
	/**
	 * 渠道编号
	 */
	@NotBlank(message = "渠道编号不能为空", groups = {Add.class,Edit.class})
	private String channelCode;
}
